package com.yike.common.exception;

import com.yike.common.api.ApiCode;
import com.yike.common.enums.GoodsCodeEnum;
import com.yike.common.enums.MachineCodeEnum;

/**
 * 业务异常
 */
public class GoodsBusinessException extends BaseException {
	private static final long serialVersionUID = -2303357122330162359L;

	public GoodsBusinessException(String message) {
        super(message);
    }

    public GoodsBusinessException(Integer errorCode, String message) {
        super(errorCode, message);
    }

    public GoodsBusinessException(GoodsCodeEnum goodsCode) {
        super(goodsCode.getCode(), goodsCode.getDesc());
    }

    public GoodsBusinessException(MachineCodeEnum machineCode) {
        super(machineCode.getCode(), machineCode.getDesc());
    }

    public GoodsBusinessException(ApiCode apiCode) {
        super(apiCode);
    }

}
